{include header.tpl}
{include nav.tpl}
{include search.tpl}

<div class="title">帖子修改-<a href="index.php?index-talk-tid-{$tid}.htm">返回帖子</a>-<a href="index.php">首页</a></div>

<div class="form">
	<form action="index.php?talkedit-index-tid-{$tid}.htm" method="post" name="addtalk" {if ($show_file_html || $show_imgs_html)}enctype="multipart/form-data"{/if}>
{if $show_face_html}
		<div class="l">
		{for $show_face_num=1;$show_face_num<=count($face_name);$show_face_num++}
			<div class="l2"><input type="radio" name="facecode" value="{$show_face_num}"/>
			<img src="jy_src/face/{$show_face_num}.png"/>
			{echo $face_name[($show_face_num-1)]}
			</div>
		{/for}
				<input type="hidden" value="{$title}" name="title"/>
				<input type="hidden" value="{$content}" name="content"/>
				<input type="submit" value="插表情" name="addface" class="submit"/>. 
				<input type="submit" value="返回" name="goback" class="submit"/>
		</div>
{elseif ($show_file_html || $show_imgs_html)}
				<p>选择{if $show_file_html}附件{else}图片{/if}<br/>{$alert_msg}</p>
				<p><input type="file" name="file" value="选择" class="form-input"/></p>
				<p><input type="hidden" value="{$FORM_HASH}" name="FORM_HASH"/>
				<input type="hidden" value="{$title}" name="title"/>
				<input type="hidden" value="{$content}" name="content"/>
				<input type="submit" value="插{if $show_file_html}附件{else}图片{/if}" name="{if $show_file_html}addfile{else}addimgs{/if}" class="submit"/>. 
				<input type="submit" value="返回" name="goback" class="submit"/></p>
{else}
		<p>标题(200字以内)：</p><p><input type="text" value="{$title}" name="title" class="form-input"/></p>
		<p>内容：</p><p><textarea name="content" cols="26" rows="6" class="form-textarea">{$content}</textarea></p>
		<p><input type="submit" value="改帖子" name="talksub" class="submit"/>.
		<input type="submit" value="插表情" name="addface" class="submit"/>
		<br/><br/>
		<input type="submit" value="插附件" name="addfile" class="submit"/>.
		<input type="submit" value="插图片" name="addimgs" class="submit"/></p>
{/if}
	</form>
</div>
{include ly.tpl}
{include footer.tpl}